
// 网址前缀
// var HOST_NAME = 'http://benyamin.xiaojingxiuxiu.com';
// var HOST_NAME = 'http://bymadmin.me';
// var HOST_NAME = 'http://zbymadmin.me';

var HOST_NAME = location.origin;

// var API_HOST_NAME = 'http://bymapi.me';

// var WECHAT_HOST_NAME = 'http://bymwechat.me';
var WECHAT_HOST_NAME = 'http://bym-wechat.xiaojingxiuxiu.com';

var PATH_NAME = '/admin/';

var API_PATH_NAME = '/api/';

var WECHAT_PATH = '/wechat/api/v1/';

var API_LIST = {

    // 首页banner图api
    BANNER_LIST : HOST_NAME + PATH_NAME + 'wemall/appset/banner',

    //功能镜新增，修改，删除，查看
    GLASS_LIST : HOST_NAME + PATH_NAME + 'products/glass-api',

    //镜片新增，修改，删除，查看
    LENS_LIST : HOST_NAME + PATH_NAME + 'products/len-api',

    //隐形眼镜新增，修改，删除，查看
    // TRAN_LIST : HOST_NAME + PATH_NAME + 'products/glass-api',

    //护理用品新增，修改，删除，查看
    // NURSING_LIST : HOST_NAME + PATH_NAME + 'products/glass-api',

    //全部商品
    ALL_PRODUCT_LIST : HOST_NAME + PATH_NAME + 'products/all-product',

    //全部虚拟商品
    ALL_VIRTUAL_PRODUCT : HOST_NAME + PATH_NAME + 'products/virtual-product',

    //搭配商品查看和保存
    COMBINE_PRODUCT : HOST_NAME + PATH_NAME + 'products/relate-product-api',

    //搭配商品的颜色
    COMBINE_COLOR : HOST_NAME + PATH_NAME + 'products/product-color',

    //调货获取customer_type
    TRANSFER_TYPE : HOST_NAME + PATH_NAME + 'transfer-cargo/get-customer-type',

    //调货列表，详情
    TRANSFER_LIST : HOST_NAME + PATH_NAME + 'transfer-cargo/cargo',

    //确认收货
    CONFIRM_SIGN : HOST_NAME + PATH_NAME + 'transfer-cargo/customer-sighed',

    //查询订单
    ADMIN_ORDER_QUERY : HOST_NAME + PATH_NAME + 'order-query/order',

    //更新物流
    EXPRESS_UPDATE : HOST_NAME + PATH_NAME + 'order-query/express',

    //批量发货
    BATCH_EXPRESS : HOST_NAME + PATH_NAME + 'order-query/order-batch',

    //评价页面
    PRODUCT_COMMENT : HOST_NAME + PATH_NAME + 'products/comment',

    //批量回复
    BATCH_REPLY : HOST_NAME + PATH_NAME + 'products/comment-batch-reply',

    //微信个性菜单
    WEMALL_MENU : HOST_NAME + PATH_NAME + 'wemall/menu/authorizer-menu',

    //新增，修改，更新，删除补货员
    REPLENISHMENT_HANDLE : HOST_NAME + PATH_NAME + 'vending-machine/replenishment',

    //地址新增
    NEW_ADDRESS : HOST_NAME + PATH_NAME + 'vending-machine/replenishment/customer/address',

    //开通机器
    NEW_MACHINE : HOST_NAME + PATH_NAME + 'vending-machine/bym-new-machine',

    //机器查询API
    MACHINE_QUERY : HOST_NAME + PATH_NAME + 'vending-machine/machine/status',

    // 售卖机监控
    VENDOR_HLS : HOST_NAME + PATH_NAME + 'vending-machine/machine/hls',

    //机器记录log
    MACHINE_LOG : HOST_NAME + PATH_NAME + 'vending-machine/machine/log',

    //试戴查询
    TRY_ON : HOST_NAME + PATH_NAME + 'product/try-on-log',

    //订单跳转
    ORDER_URL : HOST_NAME + PATH_NAME + 'order/queryorder/',

    //产品查看跳转
    PRODUCT_DETAIL : HOST_NAME + PATH_NAME + 'products/glass/glass',

    //机器日志跳转
    TO_MACHINE_LOG : HOST_NAME + PATH_NAME + 'management/vendor-machine-log',

    //货道查看跳转
    TO_AISLE : HOST_NAME + PATH_NAME + 'management/vendor-aisle-query',

    //货道日志跳转
    TO_AISLE_LOG : HOST_NAME + PATH_NAME + 'management/vendor-aisle-log',

    //全部订单跳转
    TO_ALLORDER : HOST_NAME + PATH_NAME + 'management/customer-order-query',

    //微商城订单跳转
    TO_WEMALL_ORDER : HOST_NAME + PATH_NAME + 'management/wemall-order-query',

    //设置货道，修改货道，查看货道api
    AISLE_SET : HOST_NAME + PATH_NAME + 'vending-machine/aisle/product',

    //生成补货清单api
    REPLENISH_LIST : HOST_NAME + PATH_NAME + 'vending-machine/replenishment/task/list',

    //货道状态查询api
    AISLE_QUERY : HOST_NAME + PATH_NAME + 'vending-machine/aisle/status',

    //货道历史logs
    AISLE_LOG : HOST_NAME + PATH_NAME + 'vending-machine/aisle/log',

    //获取商品所有颜色
    AISLE_PRODUCT_COLOR : HOST_NAME + PATH_NAME + 'vending-machine/aisle/product-color',

    //机器状态导出Excel
    MACHINE_EXCEL : HOST_NAME + PATH_NAME + 'vending-machine/export-vendor',

    //任务清单导出Excel
    REPLENISH_EXCEL : HOST_NAME + PATH_NAME + 'vending-machine/replenishment/task/list-excel-export',
    
    //获取用来新增广告的信息

    ADVERT_CREATE : HOST_NAME + PATH_NAME + 'peacock/advert',

    //获取广告的播放记录

    ADVERT_PLAY_LOG : HOST_NAME + PATH_NAME + 'peacock/advert/log',

    //微信数据统计
    WECHAT_DATA : WECHAT_HOST_NAME + WECHAT_PATH + 'user-summary',

    //微信用户
    WECHAT_USER : HOST_NAME + PATH_NAME + 'mp-wechat/customer-wechat-user',

    //通用的获取下级列表的接口
    GENERAL_SUB : HOST_NAME + PATH_NAME + 'multi-subordinate',

    //消息提醒的所需信息
    REMIND_CREATE : HOST_NAME + PATH_NAME + 'admin-info',

    //消息提醒
    MESSAGE_REMIND : HOST_NAME + API_PATH_NAME + 'base-service/notification',

    // 新手上路视频列表
    NOVICE_VIDEOS :  HOST_NAME + PATH_NAME + 'get-video',

    //关键字回复
    KEYWORD_REPLY : HOST_NAME + PATH_NAME + 'mp-wechat/wechat-keyword',

    // 订单详情
    ORDER_INVOICE : HOST_NAME + PATH_NAME + 'order-query/invoice',

    //客户商商品
    CUSTOMER_PRODUCT:  HOST_NAME + PATH_NAME + 'customer-product',

};
